/** When your routing table is too long, you can split it into small modules **/
import Layout from '@/layout';

// 路由模块化：活动管理中心路由
const BannerRoutes = [
    {
        hidden: true,
        path: '/banner',
        component: Layout,
        redirect: '/list',
        children: [
          {
            path: 'list',
            component: () => import('@/views/banner-management/index'),
            name: 'BannerManagement',
            meta: {
              title: '轮播图列表',
              icon: 'el-icon-s-help'
            }
          },
          {
            hidden: true,
            path: 'add/:id?',
            name: 'BannerManagementAdd',
            component: () => import('@/views/banner-management/comp/addimg'),
            meta: {
              title: '图片列表',
              activeMenu: '/banner',
              isNotCheckToken: true
            }
          }
        ]
    }
];

export default BannerRoutes;